
<template>
  <div @click="weibo('名字')" style="margin: 50px">分享到微博</div>
</template>
<script>	
export default {
  name:'Share',
  data () {
    return {
      
    }
  },
  mounted(){
    this.weibo()
  },
  methods:{
    weibo(title) {  
      var txtVal = title;         
      var url = window.location.href;
      window.open("http://v.t.sina.com.cn/share/share.php?appkey=4120396272&title=" + encodeURIComponent(location.href)+"&url="+encodeURIComponent(url));
    }, 
  },
  
};

</script>

<style scoped lang="scss">

</style>